package com.rayboo.example.design.pattern.command;

public class SellOrder implements Order {

    private Stock mStock;

    public SellOrder(Stock stock) {
        mStock = stock;
    }

    @Override
    public void execute() {
        System.out.println("Sell stock: name = " + mStock.getName()
                + ", quantity = " + mStock.getQuantity());
    }
}
